unit uRel_Inquilino;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, rpcompobase, rpvclreport, StdCtrls, Buttons;

type
  TfRel_Inquilino = class(TForm)
    RB1: TRadioButton;
    RB2: TRadioButton;
    Label1: TLabel;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    VCLReport1: TVCLReport;
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fRel_Inquilino: TfRel_Inquilino;

implementation

uses UDM;

{$R *.dfm}

procedure TfRel_Inquilino.BitBtn1Click(Sender: TObject);
begin
 VCLReport1.Filename := str_relatorio + 'Rel_Inquilino.rep';

 if RB1.Checked then
  VCLReport1.Report.Params.ParamByName('PCOD').Value
  := 'A'
  else
  VCLReport1.Report.Params.ParamByName('PCOD').Value
  := 'I';
  VCLReport1.Title := VCLReport1.FileName;
  VCLReport1.Execute;


end;

end.
